package com.ruoyi.asset.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.asset.common.SQLServerConfig;
import com.ruoyi.asset.domain.Employee;
import com.ruoyi.asset.mapper.EmployeeMapper;
import com.ruoyi.asset.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * @author jiangxiangjin
 * @version V1.0.0
 * @description
 * @date 2023/4/10 16:06
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {


    @Autowired
    private EmployeeMapper employeeMapper;

    @Autowired
    private SQLServerConfig sqlServerConfig;

    @Override
    public Employee getEmployee(String userId) {

        Employee employee = employeeMapper.selectById(userId);
//        Connection connection = sqlServerConfig.getConnection();
//        PreparedStatement preparedStatement = connection.prepareStatement();
//        preparedStatement.

        return employee;
    }
}
